<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8">
  <title>ECG 用户平台</title>
  <script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-100">
  <div class="flex flex-col items-center justify-center min-h-screen">
    <div class="bg-white shadow-md rounded-2xl p-8 w-96 text-center">
      <h1 class="text-2xl font-semibold mb-4 text-gray-700">可穿戴心电监测平台</h1>
      {% if token %}
        <p class="text-green-600">✅ 登录成功！</p>
      {% else %}
        <a href="/login" class="text-blue-600 underline">登录</a> |
        <a href="/register" class="text-blue-600 underline">注册</a>
      {% endif %}
    </div>
  </div>
</body>
</html>
